package org.qydjk.common.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropertiesUtil {
    public static Properties createProperties(String path){
        Properties pro=new Properties();
        InputStream in=Thread.currentThread().getContextClassLoader().getResourceAsStream(path);
        if(in!=null){
            try {
                pro.load(in);
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
        return pro;
    }
}
